--[[/**
 * 死亡时触发,
 * 让buff来源添加一个buff
-- *
-- */]]

---@class BuffEffect615101 : BaseBuffEffect
BuffEffect615101 = ClientFight.CreateClass("BuffEffect615101", ClientFight.BaseBuffEffect)
local t = BuffEffect615101

---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...};
 local source = buff.source;

 SkillRoleMgr.savePathFile(  "[" .. fight.frame .. "][EFFECT]Fighter " .. buff.target.fighterId .. " Buff"
         .. buff.modelId .. " 死亡时,西泽重新选择标记敌人,并且获得buff(替换普攻为强化攻击)：" );
 local buffEffectValue = buff.buffBean.f_BuffEffectValue;
 BuffManager.addBuff(fight, buff.skill, buff.source, buff.source, false, buffEffectValue[1], 1);
 return IBuffEffect.REMOVE;
end

t.New()